<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script>
    //	2022-09-16T01:52:46.578Z

    // let time = new Date("2022-09-16T01:52:46.578Z")
    // console.log(time.getTimezoneOffset())
    // console.log(time.DateTimeFormat)
    // console.log(time.toTimeString())
    console.log(new Date())

    // //方法1
    // let year = time.getFullYear()
    // let obj = {
    //   month: time.getMonth() + 1,
    //   day: time.getDate(),
    //   hour: time.getHours(),
    //   minute: time.getMinutes(),
    //   second: time.getSeconds()
    // }

    // for (i in obj) {
    //   obj[i] = obj[i] < 10 ? '0' + obj[i] : obj[i]
    // }

    // console.log(`${year}-${obj.month}-${obj.day} ${obj.hour}:${obj.minute}:${obj.second}`)


  </script>
</head>

<body>

</body>

</html>